package com.nbot.server.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.nbot.server.mapper.master.KeyParameterMapper;
import com.nbot.server.domain.KeyParameterDO;
import com.nbot.server.service.KeyParameterService;


@Service
public class KeyParameterServiceImpl implements KeyParameterService {
    @Autowired
    private KeyParameterMapper keyParameterMapper;

    @Override
    public KeyParameterDO get(Long autoId) {
        return keyParameterMapper.get(autoId);
    }

    @Override
    public List<KeyParameterDO> list(Map<String, Object> map) {
        return keyParameterMapper.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return keyParameterMapper.count(map);
    }

    @Override
    public int save(KeyParameterDO keyParameter) {
        return keyParameterMapper.save(keyParameter);
    }

    @Override
    public int update(KeyParameterDO keyParameter) {
        return keyParameterMapper.update(keyParameter);
    }

    @Override
    public int remove(Long autoId) {
        return keyParameterMapper.remove(autoId);
    }

    @Override
    public int batchRemove(Long[] autoIds) {
        return keyParameterMapper.batchRemove(autoIds);
    }

}
